# This program counts the numbers divisible by 3 from 1 to 9 and prints them.
# It also prints the number of numbers divisible by 3.
counrt = 0
for i in range(1, 10):
    if i % 3 == 0:
        counrt += 1
        print(i)
print(f"There are {counrt} numbers divisible by 3.")
